﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using Microsoft.WindowsAzure.Storage.Table;

namespace UserSessionService.WebApi.Models
{
    public class ViewedItem : TableEntity
    {
        public ViewedItem(string userId, string productId)
        {
            this.PartitionKey = userId;
            this.RowKey = DateTime.Now.Ticks.ToString();
            this.ProductId = productId;
        }

        public ViewedItem() { }

        public string ProductId { get; set; } // so far we have here only product ID

    }
}